all: xen-ps 

xen-ps: proc xen-ps.c
	gcc -I/usr/local/include -g -O2 -c -o xen-ps.o xen-ps.c 
	gcc -L/usr/local/lib -g -O2 -o xen-ps -lxenaccess xen-ps.o proc.o

proc: proc.c
	gcc -I/usr/local/include -g -O2 -c -o proc.o proc.c 

clean:
	rm -rf ./*.o
	rm -rf ./xen-ps
